<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<p>Hello</p>
<% 
String name = request.getParameter("name");
String gender = request.getParameter("gender");
String bloodType = request.getParameter("bloodType");
String dob = request.getParameter("dob");
String address = request.getParameter("address");
String patientID = request.getParameter("patientID");

List<String> patientValues = new ArrayList<String>();
patientValues.add(name);
patientValues.add(gender);
patientValues.add(bloodType);
patientValues.add(dob);
patientValues.add(address);
patientValues.add(patientID);

if (patientValues !=null) 
{%> 
<ul>
	<%
	
	for (String myValues : patientValues) 
	{ 
	%>
	  <li><%= myValues %></li>
	<%
	}
}%>
</ul>
</html>